import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
type int = number;
//class SGuildPlayerAttendance
    
    export  class SGuildPlayerAttendance extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildPlayerAttendance();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.miniPlayer.__write(arg1);
            arg1.writeInt(this.position);
            arg1.writeInt(this.totalContribute);
            arg1.writeInt(this.num1);
            arg1.writeInt(this.num2);
            arg1.writeInt(this.num3);
            arg1.writeInt(this.num4);
            arg1.writeInt(this.num5);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(arg1);
            this.position = arg1.readInt();
            this.totalContribute = arg1.readInt();
            this.num1 = arg1.readInt();
            this.num2 = arg1.readInt();
            this.num3 = arg1.readInt();
            this.num4 = arg1.readInt();
            this.num5 = arg1.readInt();
            return;
        }

        public /* const */_type: int=12111;

        public /* var */miniPlayer: SPublicMiniPlayer;

        public /* var */position: int;

        public /* var */totalContribute: int;

        public /* var */num1: int;

        public /* var */num2: int;

        public /* var */num3: int;

        public /* var */num4: int;

        public /* var */num5: int;

        public static /* var */_regist: SGuildPlayerAttendance;
    }

            SGuildPlayerAttendance._regist = new SGuildPlayerAttendance(true);
        